package com.weilele.mvvmlib.sample.fg

import com.weilele.mvvm.utils.net.createRetrofitApi
import retrofit2.http.GET
import retrofit2.http.Path

interface TestApi {
    //https://gank.io/api/v2/data/category/Girl/type/Girl/page/1/count/10
    companion object {
        val self by lazy {
            createRetrofitApi<TestApi>("https://gank.io/")
        }
    }

    @GET("api/v2/data/category/Girl/type/Girl/page/{pageIndex}/count/{pageNum}")
    suspend fun getMeizi(
        @Path("pageIndex") pageIndex: Int,
        @Path("pageNum") pageNum: Int,
    ): MeiziBean
}